package com.xcx.controller.user;

import com.alibaba.fastjson.JSONObject;
import com.xcx.dto.StoreInspectionDetailDto;
import com.xcx.result.Result;
import com.xcx.service.user.DataBoardService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/xcx/dataBoard")
@Slf4j
public class DataBoardController {

    @Autowired
    private DataBoardService dataBoardService;

    @PostMapping("/getDataAndTime")
    public Result overview(@RequestBody Map<String,Object> map) {
        JSONObject jsonObject = dataBoardService.overview(map);
        return Result.success(jsonObject);
    }

}
